package cn.sxt.logistics.service;

import java.util.List;

import cn.sxt.logistics.pojo.Order;
import cn.sxt.logistics.pojo.OrderDetail;
import cn.sxt.logistics.pojo.OrderExample;

public interface OrderService {
	
	
	int deleteByPrimaryKey(Long orderId);

	int insert(Order record);
	

	List<Order> selectByExample(OrderExample example);

	Order selectByPrimaryKey(Long orderId);

	int updateByPrimaryKeySelective(Order record);

	/**
	 * 根据订单的id查询出订单明细
	 * @param orderId 订单id
	 * @return 订单明细集合
	 */
	List<OrderDetail> selectOrderDetailsByOrderId(Long orderId);

}
